#include <stdio.h>
#include<string.h>

int a;
struct Person
{   char name[20];
    int count;
}leader[3]={"Li",0,"Zhang",0,"Sun",0};
int fun2(){
    extern a;
}
int fun(){
    extern  a;
}
int a;
int main(){ 
    int i,j;
    //交换
    int temp;
    


    char leader_name[20]; //定义字符数组
    for(i=1;i<=10;i++){
        scanf("%s",leader_name); //输入所选的候选人姓名
        for(j=0;j<3;j++)
        if(strcmp(leader_name,leader[j].name)==0)
            leader[j]. count++;
        }
    for(i=0;i<3;i++)
        printf("%s%d",leader[i].name,leader[i].count);
    return 0;
}

